package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("wnxt_order")
@Schema(title = "Order对象", description = "订单表")
public class Order {
    private static final long serialVersionUID = 1L;

    @Schema(title = "订单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(title = "课程ID")
    private Long courseId;

    @Schema(title = "支付宝交易号")
    private String tradeNo;

    @Schema(title = "下单时间")
    private Date orderTime;

    @Schema(title = "用户ID")
    private Long userId;

    @Schema(title = "订单金额")
    private BigDecimal price;

    @Schema(title = "支付时间")
    private Date payTime;

    @Schema(title = "订单状态（1：待支付 2：已支付 3：进行中 4：已取消 5：已完成 6.退款中 7. 已退款）")
    private String status;
}